<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$images = scandir("./Images/");

echo "<table>";
    if(isset($images[2])){
        for($i = 2; $i<count($images);$i++){
            echo "<a href=\"./?page=displaySelectedImage&image=".$images[$i]."\"><img style=\"padding: 20pt; width: 20%; height: 150pt;\" src=\"./Images/".$images[$i]."\"/></a>";
        }
    }else{
        echo "<tr><td>No pictures currently in this gallery</td></tr>";
    }
    echo "</table>";
?>
